package Practice02;

public class InputChinese {
    public static void main(String[] args) {
        char ch = '研', zifu = 0;
        int p=22920,count=5,position=0;
        System.out.printf("输出%d个石字旁的汉字:\n",count);
        for(char c=ch;c<=ch+count;c++) {
            position = p++;
            System.out.printf("%c(%d)",c,position);
        }
        System.out.printf("输出%d个女字旁的汉字:\n",count);
        for(int n = p; n <= p + count; n++){
            zifu = (char)n;
            System.out.printf("%c(%d)",zifu,n);
        }
    }
}
